<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}
?>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="<?=$page?>" />
	<input type="hidden" name="numPerPage" value="<?=$pagesize?>" />
	<input type="hidden" name="orderField" value="<?=$orderField?>" />
	<input type="hidden" name="orderDirection" value="<?=$orderDirection?>" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?=u(MOD,'list',array('q'=>$q,'parent_id'=>$parent_id))?>" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>日期：</label>
				<input type="text" name="sday" style="width:70px" value="<?=$sday1?>" class="date" readonly="true" /> - <input style="width:70px" type="text" id="eday" value="<?=$eday1?>"  name="eday" class="date" readonly="true" />
			</li>
            <li><?=select($se_arr,$se,'se')?> <input type="text" name="q" value="<?=$q?>" />
            
            
            <button type="submit">查询</button>
            
            </li>
            
		</ul>

	</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
                      <th width="5%">id</th>
					  <th width="">管理员</th>
                      <th width="20%">操作IP</th>
                      <th width="20%">模块</th>
                      <th width="115px">操作</th>
                      <th width="20%">执行时间</th>
			</tr>
		</thead>
        <tbody>
        <?php foreach ($row as $r){?>
		<tr target="id" rel="<?=$r["id"]?>">
                 <td><?=$r["id"]?></td>
                 <td><?=$r["admin_name"]?></td>
         		 <td><?=$r["ip"]?></td>
                 <td><?=$r["mod"]?></td>
                 <td class="center"><?=$r["do"]?></td>
				 <td class="center"><?=date('Y-m-d H:i:s',$r["addtime"])?></td>
		 </tr>
        <?php }?>   
		</tbody>
	</table>            
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})" id="PageSize">
				<option value="20" <? if($pagesize==20){ echo 'selected="true"';}?>>20</option>
				<option value="50" <? if($pagesize==50){ echo 'selected="true"';}?>>50</option>
				<option value="100" <? if($pagesize==100){ echo 'selected="true"';}?>>100</option>
				<option value="200" <? if($pagesize==200){ echo 'selected="true"';}?>>200</option>
			</select>
			<span>条，共<?php echo $total;?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $total;?>" numPerPage="<?=$pagesize?>" pageNumShown="10" currentPage="<?=$page?>"></div>

	</div>
</div>    
